package group6renderer.renderernode;

import group6renderer.Display;
import group6renderer.Visitor;

/** CLASS NAME: BranchNode
 * DESCRIPTION: An abstract class to deal with branch nodes
 * COLABORATORING CLASSES: TreeNode, Visitor
 * @author jonnie
 */
public abstract class BranchNode extends TreeNode
{

    protected boolean goingDown = true;

    /** 
     * A method to return whether this Node is a LeafNode
     * @return true if this node has a closing tag and false otherwise
     */
    public boolean isLeaf()
    {
	return false;
    }

    /** 
     * A method to accept a Visitor so that its method can be called to visit this node. 
     * @param theVisitor references the Visitor interface
     * @Override
     */
    public void accept(Visitor theVisitor)
    {
	theVisitor.visit(this);
    }

    
}